import React, { lazy, Suspense } from 'react'

const APP = () => {
	let LazyComponent = null
	if (true) {
		LazyComponent = lazy(() => import(/*webpackChunkName:"Home"*/ './home'))
	} else {
		LazyComponent = lazy(() => import(/*webpackChunkName:"List"*/ './list'))
	}
	return (
		<Suspense fallback={<div>Loading...</div>}>
			<LazyComponent />
		</Suspense>
	)
}

export default APP
